home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / NET / UDP.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  2KB  |  56 lines

  1. /*
  2.  * INET        An implementation of the TCP/IP protocol suite for the LINUX
  3.  *        operating system.  INET is implemented using the  BSD Socket
  4.  *        interface as the means of communication with the user level.
  5.  *
  6.  *        Definitions for the UDP module.
  7.  *
  8.  * Version:    @(#)udp.h    1.0.2    05/07/93
  9.  *
  10.  * Authors:    Ross Biro, <bir7@leland.Stanford.Edu>
  11.  *        Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
  12.  *
  13.  * Fixes:
  14.  *        Alan Cox    : Turned on udp checksums. I don't want to
  15.  *                  chase 'memory corruption' bugs that aren't!
  16.  *
  17.  *        This program is free software; you can redistribute it and/or
  18.  *        modify it under the terms of the GNU General Public License
  19.  *        as published by the Free Software Foundation; either version
  20.  *        2 of the License, or (at your option) any later version.
  21.  */
  22. #ifndef _UDP_H
  23. #define _UDP_H
  24.  
  25. #include <linux/udp.h>
  26.  
  27. #define UDP_HTABLE_SIZE        128
  28.  
  29. /* udp.c: This needs to be shared by v4 and v6 because the lookup
  30.  *        and hashing code needs to work with different AF's yet
  31.  *        the port space is shared.
  32.  */
  33. extern struct sock *udp_hash[UDP_HTABLE_SIZE];
  34.  
  35. extern unsigned short udp_good_socknum(void);
  36.  
  37. #define UDP_NO_CHECK    0
  38.  
  39.  
  40. extern struct proto udp_prot;
  41.  
  42.  
  43. extern void    udp_err(struct sk_buff *, unsigned char *, int);
  44. extern int    udp_connect(struct sock *sk,
  45.                 struct sockaddr *usin, int addr_len);
  46.  
  47. extern int    udp_sendmsg(struct sock *sk, struct msghdr *msg, int len);
  48.  
  49. extern int    udp_rcv(struct sk_buff *skb, unsigned short len);
  50. extern int    udp_ioctl(struct sock *sk, int cmd, unsigned long arg);
  51.  
  52. /* CONFIG_IP_TRANSPARENT_PROXY */
  53. extern int    udp_chkaddr(struct sk_buff *skb);
  54.  
  55. #endif    /* _UDP_H */
  56.